const _import =
  process.env.NODE_ENV === 'production'
    ? (file) => () => import('@/views/modules/' + file + '.vue')
    : (file) => require('@/views/modules/' + file + '.vue').default

export default [
  // 开发阶段都login都改成true
  {
    path: 'manage/edit/content',
    component: _import('manage/edit/content/content'),
    name: 'manage-edit-content',
    meta: { title: '内容管理', login: true, showMenu: true, noSearch: true, permission: 'manage-edit-content' }
  },
  // {
  //   path: 'manage/edit/comment',
  //   component: _import('manage/edit/comment/comment'),
  //   name: 'manage-edit-comment',
  //   meta: { title: '评论管理', login: true, showMenu: true, noSearch: true, permission: 'manage-edit-comment' }
  // },
  {
    path: 'manage/edit/column',
    component: _import('manage/edit/column/column'),
    name: 'manage-edit-column',
    meta: { title: '栏目管理', login: true, showMenu: true, noSearch: true, permission: 'manage-edit-column' }
  },
  {
    path: 'manage/data/works',
    component: _import('manage/data/works/works'),
    name: 'manage-data-works',
    meta: { title: '作品数据', login: true, showMenu: true, noSearch: true, permission: 'manage-data-works' }
  },
  {
    path: 'manage/user/add',
    component: _import('manage/user/add/add'),
    name: 'manage-user-add',
    meta: { title: '添加管理员', login: true, showMenu: true, noSearch: true, permission: 'manage-user-add' }
  },
  {
    path: 'manage/user/password',
    component: _import('manage/user/password/password'),
    name: 'manage-user-password',
    meta: { title: '修改密码', login: true, showMenu: true, noSearch: true, permission: 'manage-user-password' }
  }
]
